# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         hw2
# Description:
# Author:       yzl
# Date:         2019-02-28
#-------------------------------------------------------------------------------



s=input('请输入星号塔的层数：')
s1=int(s)
for i in range(s1):
    a=2*i-1
    fmt = '{:^%d}' %(s1 + 1)
    print(fmt.format(' * ' * i))
    # print('{0: ^10}'.format('*'*(2*i-1)))